/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.entity;

import org.hibernate.validator.constraints.Length;

import com.soccer.cms.common.persistence.DataEntity;

/**
 * 赛事视频Entity
 * @author zouqh
 * @version 2015-05-21
 */
public class Racevideo extends DataEntity<Racevideo> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private String brefintrol;		// 简介
	private String brefimage;		// 图片配置
	private Integer hits;		// 访问次数
	
	public Racevideo() {
		super();
	}

	public Racevideo(String id){
		super(id);
	}

	@Length(min=0, max=50, message="编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=500, message="简介长度必须介于 0 和 500 之间")
	public String getBrefintrol() {
		return brefintrol;
	}

	public void setBrefintrol(String brefintrol) {
		this.brefintrol = brefintrol;
	}
	
	@Length(min=0, max=255, message="图片配置长度必须介于 0 和 255 之间")
	public String getBrefimage() {
		return brefimage;
	}

	public void setBrefimage(String brefimage) {
		this.brefimage = brefimage;
	}
	
	public Integer getHits() {
		return hits;
	}

	public void setHits(Integer hits) {
		this.hits = hits;
	}
	
}